﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Ymatou.ServiceCenter
{
    [Serializable]
    public class ServiceClientException : Exception
    {
        public string RequestId { get; private set; }

        public ServiceClientException()
        {

        }

        public ServiceClientException(SerializationInfo serializationInfo, StreamingContext context)
            : base(serializationInfo, context)
        {

        }

        public ServiceClientException(string requestId, string message)
            : this(requestId, message, null)
        {

        }

        public ServiceClientException(string requestId, string message, Exception innerException)
            : base(message, innerException)
        {
            this.RequestId = requestId;
        }

    }
}
